all: mwera

clean:
	rm -rf *.o

mwera: main.o mwerabase.o graph.o point.o link.o
	g++ -o mwera.bin main.o mwerabase.o graph.o point.o link.o -w -Wall

main.o: main.cpp mwerabase.h graph.h point.h link.h
	g++ -c main.cpp -o main.o -w -Wall

mwerabase.o: mwerabase.cpp mwerabase.h graph.h point.h link.h
	g++ -c mwerabase.cpp -o mwerabase.o -w -Wall

graph.o: graph.cpp graph.h link.h point.h
	g++ -c graph.cpp -o graph.o -w -Wall

point.o: point.cpp point.h
	g++ -c point.cpp -o point.o -w -Wall

link.o: link.cpp link.h point.h
	g++ -c link.cpp -o link.o -w -Wall
